# parent image
FROM java:8

# make workspace folder
RUN mkdir /app

WORKDIR /app

COPY ry-tools-1.0.jar ry-tools.jar

# 8190 for web environment port
# 9958 for netty server port
EXPOSE 8089

# execute the command after the container running
ENTRYPOINT ["java", "-Duser.timezone=GMT+08", "-jar", "ry-tools.jar"]

# default parameter for container
CMD ["--spring.profiles.active=dev"]